package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.WeDoctment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WeDoctmentMapper;
import com.ruoyi.system.service.IWeDoctmentService;

/**
 * 文档签章（网页签章）Service业务层处理
 * 
 * @author ess
 * @date 2021-10-18
 */
@Service
public class WeDoctmentServiceImpl implements IWeDoctmentService 
{
    @Autowired
    private WeDoctmentMapper weDoctmentMapper;

    /**
     * 查询文档签章（网页签章）
     * 
     * @param documentid 文档签章（网页签章）主键
     * @return 文档签章（网页签章）
     */
    @Override
    public WeDoctment selectWeDoctmentByDocumentid(String documentid)
    {
        return weDoctmentMapper.selectWeDoctmentByDocumentid(documentid);
    }

    /**
     * 查询文档签章（网页签章）列表
     * 
     * @param weDoctment 文档签章（网页签章）
     * @return 文档签章（网页签章）
     */
    @Override
    public List<WeDoctment> selectWeDoctmentList(WeDoctment weDoctment)
    {
        return weDoctmentMapper.selectWeDoctmentList(weDoctment);
    }

    /**
     * 新增文档签章（网页签章）
     * 
     * @param weDoctment 文档签章（网页签章）
     * @return 结果
     */
    @Override
    public int insertWeDoctment(WeDoctment weDoctment)
    {
        return weDoctmentMapper.insertWeDoctment(weDoctment);
    }

    /**
     * 修改文档签章（网页签章）
     * 
     * @param weDoctment 文档签章（网页签章）
     * @return 结果
     */
    @Override
    public int updateWeDoctment(WeDoctment weDoctment)
    {
        return weDoctmentMapper.updateWeDoctment(weDoctment);
    }

    /**
     * 批量删除文档签章（网页签章）
     * 
     * @param documentids 需要删除的文档签章（网页签章）主键
     * @return 结果
     */
    @Override
    public int deleteWeDoctmentByDocumentids(String[] documentids)
    {
        return weDoctmentMapper.deleteWeDoctmentByDocumentids(documentids);
    }

    /**
     * 删除文档签章（网页签章）信息
     * 
     * @param documentid 文档签章（网页签章）主键
     * @return 结果
     */
    @Override
    public int deleteWeDoctmentByDocumentid(String documentid)
    {
        return weDoctmentMapper.deleteWeDoctmentByDocumentid(documentid);
    }
}
